package com.noahplat.datapro.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class Semaphore {

    @Length(max = 32)
    private String imei;  //设备唯一标识
    @Length(max = 5)
    private String semaphore;   //信号强度
    @Length(max = 32)
    private String type;  //设备类型
    @Length(max = 32)
    private String prod;   //所属公司
    @Length(max = 32)
    private String model;   //设备型号
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private Date ts;    //时间

}
